import React from 'react'
import ReactDOM from 'react-dom'
import { BrowserRouter as Browser } from 'react-router-dom'
import {ConfigProvider} from 'antd'
import zhCN from 'antd/es/locale/zh_CN';
import Routes from '@modules/Routes'
import {RouteList} from './routes'
import moment from 'moment';
import 'moment/locale/zh-cn'

import 'braft-editor/dist/index.css'
moment.locale('zh-cn')

const App = props=>{
	return <Browser>
			<Routes container={true} routes={RouteList}></Routes>
		</Browser>
}
ReactDOM.render(<ConfigProvider locale={zhCN}><App /></ConfigProvider>, document.getElementById('root'));